package com.hh.designPrinciples.LeastKnowledgePrinciple;

import java.util.ArrayList;
import java.util.List;

/**
 * @author huangh
 * @since 2019/11/19
 */
public class Boss {
    public void commandCheckNumber(TeamLeader teamLeader) {
        // 老板获取到所有的课程
        List<Course> list = new ArrayList<>();
        for (int i = 0; i < 20; i++) {
            list.add(new Course());
        }
        // 对小组长下达检查指令
        teamLeader.checkNumber(list);
    }
}
